<?php

defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.controller');

class FattureTooController extends JController {

	function __construct()
	{
		parent::__construct();
	}


	/**
	* Method to display the view
	*
	* @access    public
	*/
	function display()
	{
		// View caching logic -- simple... are we logged in?
		$user = &JFactory::getUser();
		JRequest::setVar('view', 'fatturetoo');
		if ($user->get('id')) {
			parent::display(false);  
		} else {
			// Non sono loggato come utente
			parent::display(true);  // Metto nella cache
		}
	}

	function societa()
	{
		$user = &JFactory::getUser();
		JRequest::setVar('view', 'societa');
	//	JRequest::setVar('layout', 'societa');
		parent::display();
	}
}

?>